package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.News;
import cn.wolfcode.trip.base.query.NewsQueryObject;
import cn.wolfcode.trip.base.query.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface INewsService {

    News selectByPrimaryKey(Long id);

    List<News> selectAll();

    PageInfo query(NewsQueryObject qo);

    void update(News news);

    void save(News news);

    News getContentById(Long id);

    List<News> selectAllByKeyWord(String keyWord);
}
